﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebInvoicingsys.system.baseset.productdata
{
    public partial class product : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ;
            }
        }

        //查询
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string productcode = txt_productcode.Text.Trim();
            string productname = txt_productname.Text.Trim();
            string productshortname = txt_productshortname.Text.Trim();
            string goodsclass = uc_search_goodsclass.getValue();
            string goodsunit = uc_search_goodsunit.getValue();
            string goodsspec = uc_search_goodsspec.getValue();
            string stack = uc_search_stack.getValue();
            string guard = uc_search_guard.getValue();

            string url = "/system/baseset/productdata/product_list.aspx?productcode={0}&productname={1}&productshortname={2}&goodsclass={3}&goodsunit={4}&goodsspec={5}&stack={6}&guard={7}";

            url = String.Format(url, productcode, productname, productshortname, goodsclass, goodsunit, goodsspec, stack, guard);

            Response.Redirect(url);
        }

        //添加
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string url = "/system/baseset/productdata/product_add.aspx";

            Response.Redirect(url);
        }
    }
}